make sequences restart themselves and various important cleanup