[epg] some cleanup.