added ms in date command
added logging and some extra checking in threaded server