this is getting a little sloppy.... added flash support, but that was a bear to test... added some authentication, but not sure why... etc... etc...