providing support for enum writes