refactoring camaraWS