added config storage(almost complete)