don't keep monitoring a connection once it is reactivated
refactor before blocks