changed a few things in the control code to try and deal with the NODATA returns