write ack module and server logic