do not care about the actual server location
do a single count request at the start
whitespace fixes

useful git options:

git config --global core.whitespace trailing-space,space-before-tab
git config --global apply.whitespace fix
do not scramble output filename