support debugfile switch