correction in join function implementation: do_join_ack, join_req