handle empty downloads more elegantly