added functions to mark communication processed