initial code sketch for tuning randomWA models