added optimization for only sending updated patches