changed fh.readlines() to pipe to grep for faster lookup