stop using deprecated api
Merge pull request #54 from tenderlove/compat

stop using deprecated api