fix function name conflicts w/ JSON API plugin