first attempt at a dng wrapper