added nesting and parent, placeholders, comments, etc.