change error object
move identity into new category and add other stuff.