save and restore PATH