renamed resetPath() to initPath()