first run just communication between server and client.. contains bugs