added the to_client method to server fields