switched to using `resource`, thanks