add switch to frame and to parent support