type-id queries should be global