make ApiTaskAsync protected (fixes #232)