refactoring demo,imgr doc