updates csv to reflect parent/child stuff