call save_seed only in main script