removing toServer in lieu of serialize method