added in platform detection and macinstall function