add ability to get current thread id