generate state resources