fixed some things
Server now communicates with physical device.