improved spec and model relations