got the SPW detection to work (on the Mac...)