added sample template
added non-interactive mode
prevent pollute global namespace
reverted