yup, last try didn't work, adding in some debugging when it detects the bucket is not writable
fixing blatent error in last commit
fixing all the blantent $_GLOBALS variable names i've been missing all this time