add some auto config for mac