remove old ref to path