fix for tape read and debugging