fix session scope in node
add data tables for sorting output