remove unused require statements
make message sort function a little cleaner
don't respond to old messages on startup
improve logging