added maxPath definition