refactoring autocomplete
modularized with fake version so it does not require directory structure