Resource and providers

Mark this as a TODO if its not completed