for compatibility with current API, kept old query method