compatibility fix for go 1.0.3