semi-stable integration with the models code