params update, checkpoint creation code