better alerts on errors