connected and handling events over serial