added path prefix support