get thread id, so the main script can track what thread it is working on