avoid duplicate download funciton, also fixes #230