updated write-to-onion-city