added script to save objects