add sessions support in commands