attempt to use nanosleep in order to slow down
change to poll modifications and bulk send to redis
little beautify