implementation of searchreplyhandling
merged