ensure config
check and return error
flatten config
0.0.3