listen for initialze event
cleanup ws