support multi-stage renders ; fix transformBegin/transformEnd commands ; code cleanup