sending results to server: a lot of changes

shit finally work :)