prepare for errors