typescript fixes
download option