stop relying on check-aggregate and drop rest-client dependency