changed keepalive to integer