rename sgx to sg to avoid naming issue with sgx.py