switching to a resource based structure