split out source file for mac