added ws as dependency