change algorithm used to extract tooltip keys
remove debugging