change ping
made cursor work for all OS