use resource state to render config