add file extension recognition