set payload, but then zerod the length