fixing ws security