store and retrieve timestamps