changed model to support mesh names and files.