added command line arguments
 more tweaks to upload scripts