basic support of load and dump functions