bug fixes for LRU behaviour and some work on table iteration