updated support for relative base paths