fixing file problems