add IP and UA to state