state directly before generating models