   ###
   @description Require "fs-extra" npm package
   ###
-  fs = Npm.require "fs-extra"
+  fs      = Npm.require "fs-extra"
   request = Npm.require "request"
+  util    = Npm.require "util"
 
   ###
   @var {object} bound - Meteor.bindEnvironment aka Fiber wrapper

  @description Write buffer to FS and add to Meteor.Files Collection
  @returns {Files} - Return this
  ###
  write: if Meteor.isServer then (buffer, opts, callback) ->
    console.info "Meteor.Files Debugger: [write(buffer, #{opts}, callback)]" if @debug
    check opts, Match.Optional Object
    check callback, Match.Optional Function

    if _.isString fileRef
      version = fileRef 
      fileRef = undefined
    return undefined if not fileRef or not @currentFile

    if fileRef and _.isObject fileRef 
      if @public
