remove path manipulation instructions