made DotWrapper act more like function when appropiate