add config variable for keep alive frequency