hacked main of old code to make two client work for now