correct file modes