added support for OS X 10.5