added threadlogging script and TL500 wrapper.