implementation of the monitor component