added almost final version of automation tool