fixing terminal issues and note behavior