minor refactor of resources into the resource module