added a time stamp to logging