-generate periods by name
-fix some minor bugs