minor refactoring + new api function _helper to execute server side helper functions