reorg by http and ws libs, add ws