small changes for exec_native