for go1.0 compatibility