preparations for keepalives