set debug mode
fixed some bugs, canvas events now binded on socket connect