minor improvements and LRU truncate fix