quick script to format stats from curl