commit alll the modification about the thread and file operation