format thrift def file.
reorganize config.
use valueOf instead of parse
fix port number config issue.