render-states now templated