add some comments
fix -f flag