two more replacements of SEXP in interfaces of helper functions