remove iresourcecontroller dependency