add upload_bucket option, make upload work