phpws library (need clean)