working Template File Parsing