add method variable collector for smarty templates
build 0.4.2