work on query-based program collector