improved sampling utilities and now working on control code for each run of gp