Export with-environment (closes #2)