fixes major bug in timestamp refresh, which killed the performance after a while.
adds basic logging