created a serialization method for the new options