make writing forest optional