make delete and download work