add check for monitoring function