update parser and completion logic to give better responsiveness