fixed old path style support