use basis.template.define and code formatting
code formatting
code formatting
make namespace.path function
small fixes