download a file directly