set up error tracking