fixed pi script
fixed pi script
Tidied up after mac switch
Tidied up after mac switch