refactored so modules are responsible to assign their own resources their resource_uri.