removed redundant determining of file type in fshandler