refacoring the sending_mutex, not needed anymore.