added options to strip leading paths