updated to use gopkg.in