add options to search() (fixed #3)