use enum of file type instead of all of these booleans