warehouse refactored, global config removed