replace __* with api*