environment type now uses bitfields