update script to run client and server