fixed link serialization that broke binary compatibility