 				else cb null, res.body
 
 	set: (gamerCred, key, value, cb)->
+		unless key? then key=''
 		agent
 		.put "/v1/gamer/vfs/#{domain}/#{key}"
 		.use prefixer

				else cb null, res.body

	del: (gamerCred, key, cb)->
		agent
		.del "/v1/gamer/vfs/#{domain}/#{key}"
		.use prefixer

agent = require 'superagent'
prefixer = require './prefixer.coffee'
ClanError = require './ClanError.coffee'

# TODO support getting/setting/deleting all keys at once

module.exports =  (appCredentials, domain)->

