added error utilities