made filename check case insenitive