optimised gameobject queries and added type-based queries