Comment everything to re-do it correctly.
Run the input thread in TID_FILE instead of a custom one.
Move tasks to the base folder.
Move visitors to the base folder.
Move protobufs utils to the base folder.
Prepare the life span handler.
Use a lock to access everything in the request.