more robust backend, repeats calls 5 times from device, deletes script when done