added startSearch and searchLength fixes