imrprove tuning with imputation for y and store exec time and errmsg in optpath