re-indent code to make actual code flow more obvious
replace %FAI::dev_children with %dev_children