added search logging