renamed queue to state registry
bugfix