avoid possible siedeffect of threading