stop capsule from getting confused about global scope in commonjs