ensure fork safe