fix var names and revision data