support for es 1.2

Related to #28.