refactor and migrate root directory
refactor and migrate root directory