adding training save and load