better bitpointer checks