- move the callback from constructor to query()