adding options in search.R