added method to search types within a given package