onOpenMethod to initiate the scope istanbul_scope