added coded already worked on: server stuff is done, working on raspi