add conig function to manage directories, filenames