added error checking for trying to access models before versions are registered