rebuild with querymanager