adding timestamps and minimal query interface