changed the way the constructor handles the config properties