introduce FindBin
remove unused code