added disconnected mode