added config read/write support