Assin app.state.config in the loadConfig methos