refactoring. Now it is necessary to check all url and find cause of exception