correct order od build and catch set_enviornments = nil