renaming the model struct

for scoping compatibility with RTX.
also, fixed a crashing issue with writing an error message.