allowing for optional root element on insert()