changed MC_get_frame_data to return pairlist

and also return the function frame in addition to the
parent frame