remove global var scanner