environment switching, fixed StoreGlobal, updated docs & EP