added error listener