modify main and config