subform rendering, many other fixes