added run_on_device script