renamed template (default -> legacy)
minor code style update