middleware ability added to model rendering