revert #do_process to private and fix typo and ensure with test