add extra stuff to debug output file