changed clear sessions to manage command helper