moved some stuff into serverconnection