rhwatch now take function as a map argument