moved states to config file