tidy up path/id