build fixed, config per environment and url refactoring