init() for cfg file