 						if 			code == 0
 							socket.emit 'sys', JSON.stringify {sys:{records:{build:sys.records.build, status:'done',data:data}}}
 							me.dataset.getDatasets (code,data) ->
-								if !code then me.socket.emit 'sys', JSON.stringify {sys:{dataset:{list: data }}}
+								if !code then me.serv.io.sockets.emit 'sys', JSON.stringify {sys:{dataset:{list: data }}}
 								else console.log "WARNING Error controller: " + data
 						else if code == 1  then	socket.emit 'sys', JSON.stringify {sys:{records:{build:sys.records.build, status:'running',data:data}}}
 						else socket.emit 'sys', JSON.stringify {sys:{records:{build:sys.records.build, status:'failed',out:data}}}

						else console.log 'Toggle of classifier ' + sys.classifier?.toggle + ' failed.' + data

				if sys.classifier?.list? then me.classifier.getAvailableClassifiers (code,data) ->
					if !code then me.socket.emit 'sys', JSON.stringify {sys:{classifier:{list: data }}}
					else console.log "WARNING Error controller: " + data

				# TRAINING EVENTS
				if sys.training?.list? then me.dataset.getTrainingSets (code,data) ->
					if !code then me.socket.emit 'sys', JSON.stringify {sys:{training:{list: data }}}
					else console.log "WARNING Error controller: " + data

				if sys.training?.build then 	me.dataset.buildClassifier sys.training.build,  sys.training.filter_low, sys.training.filter_high,  sys.training.structure, sys.training.epoch, sys.training.learning_rate, (code,data) ->
					if 			code == 0
						socket.emit 'sys', JSON.stringify {sys:{training:{build:sys.training.build, status:'done',data:data}}}
						me.classifier.getAvailableClassifiers (code,data) ->
							if !code then me.socket.emit 'sys', JSON.stringify {sys:{classifier:{list: data }}}
							else console.log "WARNING Error controller: " + data
					else if code == 1  then	socket.emit 'sys', JSON.stringify {sys:{training:{build:sys.training.build, status:'running',data:data}}}
					else socket.emit 'sys', JSON.stringify {sys:{training:{build:sys.training.build, status:'failed',out:data}}}


				# DATASET EVENTS
				if sys.dataset?.list? then me.dataset.getDatasets (code,data) ->
					if !code then me.serv.io.sockets.emit 'sys', JSON.stringify {sys:{dataset:{list: data }}}
					else console.log "WARNING Error controller: " + data

				if sys.dataset?.build then 	me.dataset.buildDataset sys.dataset?.build, (code,data) ->
					if 			code == 0
						socket.emit 'sys', JSON.stringify {sys:{dataset:{build:sys.dataset.build, status:'done',data:data}}}
						me.dataset.getTrainingSets (code,data) ->
							if !code then me.serv.io.sockets.emit 'sys', JSON.stringify {sys:{training:{list: data }}}
							else console.log "WARNING Error controller: " + data

					else if code == 1  then	socket.emit 'sys', JSON.stringify {sys:{dataset:{build:sys.dataset.build, status:'running',data:data}}}
