added flexible path prefix