serialize moved from extra to libserialize