build a proper payload