added error handling to op()/let_op()