implement load func and dumpDict func