fixes #133: util method to get package document