remove unneeded error check for public api methods