midaction handling switch

Moving midaction flag activation to the action packet.