autodetermine parent/child