refact the zdal-config init function.