new log system
addCard method
som refactoring
socket small change