fixed #127
using time in replay