add get method to retrieve local object that contains environment