separate script for mac environment