add init with config