revert to old destroy p3_global_settings every callto setGlobals, also found a mistake in the mishyb_lib assignment to p_args.repeat_lib instead of o_args.repeat_lib