change command api to support expiration feature