serialize None as none