fixed empty template, fixed verbose mode