guard against lastrev being "" just in case