adds keepalive