adapted to of74 and osx 10.8