get rid of R/errors.R and R/query_util.R