appmanage: improve the two print functions;