updated interface to work with 2 monitoring functions (second one need to be created)