preparations to do state machine based async sending