fixed poor logic for detection of hashtables...