Accessing config from a class