change write destination for json