fix a few bugs in mac initializing codes
fixing zbstudio`s debugging features for dorothy