share data between client and server