fix sys.update and sys.failsafe to include inputs