initialization, config dir handling