added reset jag code to subsystems