added comment on basethread and constants