much cleaner to jsut pass in the url and dowlaod
refactoring because im a moron that does really stupid things