added support for base path, wildcard mapping and path formatting