added option ser/deser