add mac/ubuntu support feature.