better test for typewright flag. should help odd problems from prod