adding monitor logic back in, accidently removed.