add some error handling codepaths