add 'after children' hook