move config to file