port to mac os x 10.6