almost working sender code... incl. flickering