add timestamp, add treshhold