apf fix for depreciated feature

https://gist.github.com/bmatusiak/5358707