[pre-initial] fixed bugs, test template rendering