add restart app code and change default time from 1min to 6s