small fixes

TODO: catch close and reconnects
updated udp connection and reconnect fix