new server communications module...
move some code
retrieve current state from server added.