bug fix: @ws now refers to the connection