Add environmentalize support closes #314