adding command 'getSession'