modified to fix incorrect path for path auto.