fixed querying packages