saving and loading of config and hive data polished