client backend patially done, write to server is not working.

merging gui, client