almost have complex wod functionality

need to tie up some variables