started trying to integrate client and server