added keyword finding to paste retrieval