sanitize input
download file only if it does not exist
download file with proper extension