added initial code for worker exchange