move keepalive intervale to config file