update and remove implementations in mass query api