changed thread handler function names