diff --git a/src/bundleWriter.js b/src/bundleWriter.js
index <HASH>..<HASH> 100644
--- a/src/bundleWriter.js
+++ b/src/bundleWriter.js
@@ -13,6 +13,8 @@ function bundleWriter() {
       if (bundle.content && dest) {
         pending.push(writeBundle(logger, bundle, streamFactory(dest)));
       }
+
+      return bundle;
     });
 
     return Promise.all(pending).then(function() { return context;});
diff --git a/src/context.js b/src/context.js
index <HASH>..<HASH> 100644
--- a/src/context.js
+++ b/src/context.js
@@ -84,7 +84,7 @@ Context.prototype.setShard = function(name, shard, dest) {
 
   if (shard) {
     shards[name] = new Bundle(name, shard);
-    shards[name].dest = dest || name;
+    shards[name].dest = shard.dest || dest || name;
   }
   else {
     delete shards[name];
fixed issue with shard dest not getting properly setup