clean up paths to get gates working after extraction