working on parser
template parsing working