added topicprompts and reprompts, and fixed the hashmap search