bug fixes and more powerful render-group api