added comparators for scheduling with connections
added comparators for scheduling with connections
merged changes