implement @pramsey's prototype with the SDK