added --timeout to restart command if there was no answer from device