move config, fix err 500