Add method for marshalling config from environment