added error tracking script