use ResourceT

Because ResourceT guarantees resource release.
strict import
Merge branch 'use-ResourceT'