working on dialogue framework