implement basic version of seach, fixes #254