fix ip and cookie, print status of ping