add tape overflow/underflow handling