added querying backend