updated is_template private method
updated flex dependency