path handling fix