refactor mungebits to use long path