add rewrite add autocomplete