missing imports
updated send script with debug info
fixed end upload check