session control & include head/tail