update for session that is passed in command constructor