Allow runtime switch of environment