partial changes for drawing serialization
support filter class with parse/write in code generator