updated conf code to allow for external Config objects