added ability to use options when searching for objects