the part after this else does something entirely different, so it'd be nice to move it to a separate function (and maybe the part before the else too) instead of one 200-line long gigantic function we'd have something more readable in the handle function:   E.g:

```
if (file exists){
    batch(...)
} else {
    process_url(...)
}
```
You get the idea.