disconnect handling
include pyramid_tm