added infinite loop to restart command