renaming for automatic filetype detection