added collect_out.js