search closure need some polish...basic is already working