adding file name to batch_traceback collection, and providing a new method to refactor optional children