heavily modified date-map generator