check if config directory exists
rename