modified communication task

modified how we mirror the interpolation counter;
removed not used variables
added gc.collect()