clean up path in MAC