[func: register_dir] update
[struct.cfg] fix