added path output file
modularized importing of path code