add two possible constructors for frames and selectors