created download_url attribute, moved logic to attributes for setting download url attr by default, some clean up