fix receipts not getting refreshed
improve stability of automation-scripts