move config to objects