code: function innerLoadLuaScriptData(bundle) {
  		debugLoadStep('in innerLoadLuaScriptData');
  		var defered = q.defer();
  		if(bundle.options.loadMethod === 'filePath') {
  			fs.readFile(bundle.options.filePath, function(err, data) {
  				if(err) {
  					errorLog('Failed to load script from file', err);
  					bundle.loadedLuaScript = false;
  					bundle.isError = true;
  					bundle.errorStep = 'innerLoadLuaScriptData';
  					bundle.error = err;
  					defered.reject(bundle);
  				} else {
  					bundle.loadedLuaScript = true;
  					bundle.options.raw = data.toString();
  					defered.resolve(bundle);
  				}
  			});
  		} else {
  			bundle.loadedLuaScript = true;
  			defered.resolve(bundle);
  		}
  		return defered.promise;
  	}
docs: function innerStartLuaScript(bundle) { var defered = q.defer(); function successFunc(data) { defered.resolve(bundle); } function errorFunc(data) { bundle.scriptStopped = false; bundle.isError = true; bundle.errorStep = 'innerStartLuaScript'; bundle.error = data; defered.reject(bundle); } self.startLuaScript({'rejectOnError': true}) .then(successFunc) .catch(errorFunc); return defered.promise; }