changes to compartmentalize better, moved the mtg_object out of the frames into the root