updates old structure to work with go-driver