add state and ip