rather ugly progress as i try to figure out what i'm doing