refactor remote tab-completion to Complete module