make KEEPALIVE optional, wip implement switchcube