converts arg object to a dictionary, fixes bucket/bucket_name issue on init