Added methods to load config from stream