fixed: reading long values and reconnection