this could be moved directly to the configuration class