start work on the template parser