dist: sophia_dir support