make sure undefined scope is intialized