refactoring
address #3 - download result as a file