timestamp and expiration handling