check state in config