main files fix