search by file name in unite and remove unused code