added an optional path