huge refactoring, use WS, scla style without try, fixed urls