integrating with server