added conditional running check to prevent multiple re-starts