fix 10.6 compatibility