set @payload before processing it