add config script for mac os x.