port to macosx tools