add time-stamp hook