add config read/write