add keepalive config support