implemented naive TAB completion