refactor to public method visability for json wrapper
catch and return exceptions