fixes file identification functons