typos, fix env state if jenkins is offline