add support for path calculation