split linux and mac main into seperate mains