added error handling to termco