adapted to new clientTime constraints