working communication between app and server.
merged