basic working of distributed execution