don't get the sequence number again after sleeping
some logging
fix a nasty bug
use the right type of response