make the refresh & restart graceful