updated for 10.9 api