make path optional