added error logging to project