add support for custom current path format