enable logging option
support nested file path