remove connection code from xauxi.c and place it in xauxi_connection.c