add function state resource