resource refence count seams to be required to increase when returning it.