add cmd count control, reuseraddr etc