add some cheap error traps on vcsh and mr