determine file types