added error timeout