code cleanup
custom xml attributes
auto-resize handling