added error tracking with parse