attempt to fix mercury as subdirectory