fix main.

Need to multithread for lot of nodes.
remove global length from job message