environments: moved inc to their own folder, moved wrapping code to separate file from pinned_environment