added query parameters support for .all function