be ready for different filetype