working version of the coordinator handling a list of blocks