update state config and routs