herculean refactor: restructure do_actions()