adds more info to errors