fix: internal variables in global scope