main app; document; license