adding ip=0 for clientside code (testing only)