refined motor control and got ping working properly