rebuild parent/child relationships