use swoop in dired
fix compile errors