refactor processors to use query
merge