refactored download attachment is redundant added return content instead