some progress on cub

nothing working yet