better logging, fix day bug, and ping.js