can now write to thread