folding builder for imports