initial commit for thread interface