add other file type judgement.