fix way that download is called