moving to josh's code
making paneltest nicer