clean path before attempting a walk