remove global handler