use event.sprintf for key and period