ported to darwin (mac os x)