add threads collection + fix syntax bug