debugging
threshold parameter for diary exports