moved socket server to two greenlets