integration of client and server to single program