format
use attachPayload helper