fix exec method