fix parameter problem and extraneous definitions
added worker-to-worker connection initialization