added support for inserting enums