added some parameters to config file
changed how states are processed