dry; clean up; fix bugs;
add newly subscribe response; add xml2js; add js-yaml;