replace main files