adding recursive directory support for load and dump