logic of aggregation has been moved;

added service priorities