make rm/freevars 'safer'