compiling on mac, though probably broken