added startup hook