add file type checking.