allow passing metadata into postMessage