added facility for printing dated messages