added session gc feature
fix default parameters