actually, switch to a parameter for download. better url readability and less logic
whitespace fix