changed set_node_element to not own the input buf
fixed log_list output