changed template syntax, fixed wrong file creation