added monitorT stack stuff