now copy directory during spawn