restore environment platform on os x