add 10.8.5 trim support