updated to reflect go 1.x reflection API