generic handling of model data