framing is such a pain
flipped environment check