flatten config
0.0.6
fix issue where metadata may not exist
0.0.7