changing over from GenericValue to use ctypes values instead