handling file types as integers