[PD] serialize for osx