added session listing and pruning