fixed querying of backend