support for NULLs and serialization