modularize mac ps1