make allowance for when path begins with optional params