made into a module
generalized find_byftc to deal with lists