fix global scope pollution