added websockets and thin