changed socket comm, added Action