think I fixed the problem with stans modelnot loading by checking if @named_references '' key is present before using it