change .Wrap() so that err is optional