adding basehandler and filemodel