make read_preference copyable