fix weird file stuff