began work on parse_template