diff --git a/lib/cryptophoto-node.js b/lib/cryptophoto-node.js
index <HASH>..<HASH> 100644
--- a/lib/cryptophoto-node.js
+++ b/lib/cryptophoto-node.js
@@ -53,12 +53,14 @@ Client.prototype.getSession = function(userId, ip, callback) {
     time = new Date().getTime() / 1000,
     signature = this._sign(this._privateKey + time + userId + this._publicKey),
     data = ['publickey=', encodeURIComponent(this._publicKey), '&uid=', encodeURIComponent(userId), '&time=', time,
-            '&signature=', encodeURIComponent(signature), '&ip=', encodeURIComponent(ip)].join();
+            '&signature=', encodeURIComponent(signature), '&ip=', encodeURIComponent(ip)].join('');
 
   post(this._server + '/api/get/session', data, callback);
 };
 
-Client.prototype._sign = function(data) { crypto.createHmac('sha1', this._privateKey).update(data).digest('hex'); };
+Client.prototype._sign = function(data) {
+  return crypto.createHmac('sha1', this._privateKey).update(data).digest('hex');
+};
 
 function post(urlString, data, callback) {
   var request = http.request({
made get-session work :)