edit the sgx file