preliminary work on global search