utilities and query plugin