remove deprecated function usage
Merge pull request #75 from dimagi/deprecated

remove deprecated function usage