move sendprogram to tapeemulator class