changed expiration config to seconds