refactor prompt
rehash resource files all at once