add cws support