first fix
+1 for template access check
+code style
+x for package module variable access
Add test