a nicer and probably useful way to do arch checks