move heap profiling code to main func
session: export Sessions of Comm
server: auto clean comm & sessions