feat(error handling): add error handling
updt(engine): add functions to be up to date with REST API

-- UNTESTED --