hacky query filtering works