added websockets tolerance