- adapted to changes in time-engine API