added error code 5 handling