register hostname.xia instead of hostname with the nameserver.
Don't need to export LD_LIBRARY_PATH anymore.
Stability fixes from Ying.