changed add source to use processQuery