set up getModel utility function