stack checks; more keyboard buffer work