- changes to allow reconnection on the fly when working with blocking API
