add EXPIRATION encoding, with test