missing end in ws controller