hacks for perhaps Go 1 compatibility