fix error when sending dict as sockjs message
fix logging