server and client working at a basic level. now need to clean up and integrate