fix name variable access deprecation warning
fix config variable access deprecation warning
Merge pull request #56 from richardpeng/template

Template fix.
Fixes #55