fix aggregation again. Had accidentally broke it by sorting the imports