refactoring of child_frame concept