moving configuration into the model