use james.write for bundle