adding handling of multiple embedded subtable objects in a result
marked TODO marks with gh issue numbers