session cleaning
remove debug code