clean flame dirs, modify dirs.