back up hashtables to text file