added monitoring module and small changes in adapter