support for querying models with where filter