revert extern globals