changed state key to use namespace string instead