automatic path normalizing