forgot to uncomment thread init