search works well, implementing credential stuff