Title: Unraveling the accretion history of an intermediate-mass YSO Abstract: Understanding the formation process of high-mass (> 8 Msun) stars is one of the key questions in astronomy. New theoretical results indicate that high-mass stars can form through disk accretion, like low-mass stars. However, this is rarely observed because of the obscuration and small number of young high-mass stars. Intermediate-mass (2 - 8 Msun) stars are a good probe of high-mass star formation: they test the limits of low-mass star formation theory, yet they are less embedded than the more massive objects. We have observed a sample of intermediate-mass Young Stellar Objects (YSO) with the new X-shooter spectrograph on the ESO Very Large Telescope, which covers the full optical to near-infrared wavelength range in one shot. The object 08576nr292 is an intermediate-mass YSO with a disk, driving a Herbig-Haro jet (HH 1042). Using spectroscopic diagnostics, both the kinematics of and physical conditions in the jet can be measured. The kinematics contain a fossil record of the episodic outflow (and accretion) history. This can be simulated by a simple model, resulting in a two-mode sinusoidal outflow rate. The associated timescales are explained by the episodic nature of the accretion and jet-launching process.