update state.php