go implementation of server working