update script with touch
More improvements to keepalive strategy