server cient functionality basic implementation