fix rest ws