some file fixes