safety checks against invalid values (like validptr, etc) NOTE: there is unfinished query/ptrvalid.* in the file tree