fix for #9

onConnection is no longer fired on login/logout