adding the ability to set keepalive in the config