remove the hardcoding of file formats