first stab at keepAlive logic