update conf.
add rest api, not completed yet.