add public API support with the publicquery() method