improve stability of automation-scripts