added error traces