move config into params